home *** CD-ROM | disk | FTP | other *** search
- ;pc tech journal - ega enhanced graphics article april 1985
- ; does small type and 43 line screen
-
- Stack segment para stack 'stack'
- dw 64 dup (0)
- Stack Ends
-
- Bdata segment at 40H
- org 63H
- CRTC dw ?
- org 87H
- info db ?
- Bdata Ends
-
- Code segment para public 'code'
- Small proc far
- push es
- sub ax,ax
- push ax
- mov ax,Bdata
- mov ds,ax
- assume ds:Bdata
-
- mov ax,0003h
- int 10h
- mov ax,1112h
- mov bl,0
- int 10h
- or info,1
- mov ax,0100h
- mov bh,0
- mov cx,0600h
- int 10h
- mov dx,CRTC
- mov al,14h
- out dx,al
- inc dx
- mov al,7
- out dx,al
- mov ax,1200h
- mov bl,20h
- int 10h
- ret
-
- Small endp
- Code ends
- end SMALL
-
-